package com.jsgt.greekfire.factory

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.jsgt.greekfire.viewmodel.UserViewModel

/**
 * author fhx
 * create time 2020/4/25 20:55
 **/
class UserViewModelFactory() :
    ViewModelProvider.NewInstanceFactory() {
    @Suppress("UNCHECKED_CAST")
    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
        return UserViewModel() as T
    }
}